package com.lzy.crm.service;

import java.util.List;


import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.CardFlowCriteria;
import com.lzy.crm.domain.CardFlow;
import com.lzy.crm.domain.Order;
import com.lzy.crm.domain.User;
import com.lzy.crm.vo.CardFlowVo;
import com.lzy.crm.vo.PlayerInfo;

public interface CardFlowService extends  BaseService<CardFlow, CardFlowCriteria> {

	
	
	/**
	 * 查询饭卡信息
	 * @param aId 玩家ID
	 * @param bId 充值ID
	 * @return
	 */
	public List<CardFlow> getCardFlowList(String aId,String bId,PageQuery pageQuery);
	
	/**
	 * 查询饭卡信息
	 * @param aId 玩家ID
	 * @param bId 充值ID
	 * @return
	 */
	public List<CardFlowVo> getCardFlowVoList(String aId,String bId,PageQuery pageQuery);
	
	
	/**
	 * 玩家充值方法
	 * @param playerInfo
	 * @param user
	 * @return
	 */
	public String newBuyCard(PlayerInfo playerInfo,User user)throws Exception;
	
	
	
	
	/**
	 * 玩家充值方法
	 * @param playerInfo
	 * @param user
	 * @return
	 */
	public String buyCard(PlayerInfo playerInfo,User user)throws Exception;
	
	/**
	 * 代理商充值方法
	 * @param playerInfo
	 * @param user
	 * @return
	 */
	public String buyCardByUser(PlayerInfo playerInfo,User user,User adduser)throws Exception;
	
	/**
	 * 微信添加房卡接口
	 * @param order
	 * @return
	 * @throws Exception
	 */
	public String buyCardByWechat(Order order)throws Exception;

	/**
	 * 查询玩家流出房卡总数
	 * @param userId
	 * @param startTime
	 * @param entTime
	 * @return
	 */
	public Integer getCardinflow(int userId,String startTime,String entTime);
	
	
	
	/**
	 * 用户给玩家添加房卡接口
	 */
	public String buyAgentCard(PlayerInfo playerInfo, User user,Integer orMoney)throws Exception;
	
}
